package cn.cstech.aijia.sns.sms;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;

public class SMSController {
	private static SMSController Instance;
	private Context mContext;
	private Activity mActivity;

	public static SMSController getInstance(Context context, Activity activity) {
		if (Instance == null) {
			Instance = new SMSController(context, activity);
		}
		return Instance;
	}

	public SMSController(Context context, Activity activity) {
		mContext = context;
		mActivity = activity;
	}

	public void init() {
	}

	public void sendMessage(String content) {
		Intent sendIntent = new Intent(Intent.ACTION_VIEW);
		sendIntent.putExtra("sms_body", content);
		sendIntent.setType("vnd.android-dir/mms-sms");
		mContext.startActivity(sendIntent);
	}
}
